﻿@model Enterprise.Management.ViewModels.UpdateUserViewModel

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@section header{
<script src="@Url.Content("~/Scripts/ManagementController/UpdateUser.js")" type="text/javascript"></script>
}
<h2>Edit</h2>

<p>
    @Html.ActionLink("Back", "Index")
</p>

@using (Html.BeginForm()) {
    <fieldset>
        <legend>User Info</legend>

        @Html.HiddenFor(m => m.User_ID)
        @Html.HiddenFor(m => m.Category_Level)

        <div class="editor-label">
            @Html.LabelFor(m => m.User_Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => m.User_Email)
            @Html.ValidationMessageFor(m => m.User_Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.User_Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(m => m.User_Name)
            @Html.ValidationMessageFor(m => m.User_Name)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.IsResetPwd)
        </div>
        <div class="editor-field">
            @Html.CheckBoxFor(m => m.IsResetPwd)
        </div>
                
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

